﻿<%@ Assembly Name="$SharePoint.Project.AssemblyFullName$" %>
<%@ Import Namespace="Microsoft.SharePoint.ApplicationPages" %>
<%@ Register TagPrefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls"
    Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register TagPrefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register TagPrefix="asp" Namespace="System.Web.UI" Assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" %>
<%@ Import Namespace="Microsoft.SharePoint" %>
<%@ Assembly Name="Microsoft.Web.CommandUI, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="GestionPerfiles.aspx.cs"
    Inherits="MS.InformationManagement.WP.Layouts.MS.InformationManagement.WP.GestionPerfiles"
    DynamicMasterPageFile="~masterurl/default.master" %>
<%@ Register TagPrefix="WpNs0" Namespace="MS.InformationManagement.WP.DocumentCenter.UserProfileCreation"
    Assembly="MS.InformationManagement.WP, Version=1.0.0.0, Culture=neutral, PublicKeyToken=6b9259615db2c07e" %>
<asp:Content ID="PageHead" ContentPlaceHolderID="PlaceHolderAdditionalPageHead" runat="server">
</asp:Content>
<asp:Content ID="Main" ContentPlaceHolderID="PlaceHolderMain" runat="server">
<link rel="stylesheet" type="text/css" href="/_layouts/INC/MS.InformationManagement/css/layoutInterna.css" />

    <%--<div>
        <h2>
            Gestion de perfiles
        </h2>
        <h3>
            Nuevo Perfil
        </h3>
        <asp:Label runat="server" ID="lblProfileName" Text="Nombre del Perfil:"></asp:Label>
        <br />
        <asp:TextBox runat="server" ID="txtbProfileName"></asp:TextBox>
        <br />
        <asp:Label runat="server" ID="lblProfileConfig" Text="Configuración del perfil"></asp:Label><br />
        <p>
            Configure los roles asociados al perfil que se dispone a crear. Seleccione los roles
            disponibles de la lista de la izquierda y agreguelos a la lista de la derecha.
        </p>
        <div>
            <div style="display:inline-block;">
                <asp:ListBox runat="server" SelectionMode="Multiple" ID="lstbAvailableRoles"></asp:ListBox>
            </div>
            <div style="display:inline-block;">
                <asp:Button runat="server" ID="btnFromAvailableToSelectedJustSelected" Text=">"/><br />
                <asp:Button runat="server" ID="btnFromAvailableToSelectedAll" Text=">>"/><br />
                <asp:Button runat="server" ID="btnFromSelectedToAvailableJustSelected" Text="<"/><br />
                <asp:Button runat="server" ID="btnFromSelectedToAvailableAll" Text="<<"/>
            </div>
            <div style="display:inline-block;">
                <asp:ListBox runat="server" ID="lstSelectedRoles" SelectionMode="Multiple"></asp:ListBox>
            </div>
        </div>
        <asp:Button runat="server" ID="btnCreate"  Text="Guardar"/>
    </div>
    <div class="Radicado-Interno-Row form-row" style="display: none;">
        <h2>
            Crear perfil</h2>
        <br />
        <asp:TextBox ID="txtPerfil" runat="server"></asp:TextBox>
        <asp:Button ID="btnCrearPerfil" runat="server" Text="Crear Perfil" OnClick="Action_Create"
            CssClass="button" ValidationGroup="ValBtnAddPerfil" />
        <br />
        <br />
        <h2>
            Perfiles del Sistema</h2>
        <br />
        <br />
        <asp:Repeater ID="rptPerfiles" runat="server" OnItemCommand="rptPerfiles_ItemCommand">
            <ItemTemplate>
                <div class="user-row">
                    <asp:CheckBox ID="chkPerfil" runat="server" Text='<%# Eval("Perfil") %>' AutoPostBack="true"
                        OnCheckedChanged="rbPerfil_CheckedChanged" CssClass="label" />
                    <asp:ImageButton ID="imgDeletePerfil" runat="server" ToolTip="Eliminar" CommandName="Delete"
                        ImageUrl="/_layouts/Images/MS.InformationManagement.WP/Eliminar.jpeg" />
                </div>
            </ItemTemplate>
        </asp:Repeater>
        <br />
        <br />
        <asp:Panel ID="pnlRoles" runat="server">
            <h2>
                Roles</h2>
            <br />
            <br />
            <asp:CheckBoxList ID="CheckBoxListRoles" runat="server" DataTextField="Text" DataValueField="Value">
            </asp:CheckBoxList>
        </asp:Panel>
        <asp:Button ID="btnGuardar" runat="server" Text="Asignar Roles" OnClick="Action_Save"
            CssClass="button" CausesValidation="false" />
    </div>--%>
    <WpNs0:UserProfileCreation runat="server" ID="upcForm" ChromeType="None" />
</asp:Content>
<asp:Content ID="PageTitle" ContentPlaceHolderID="PlaceHolderPageTitle" runat="server">
    Gesti&oacute;n de perfiles
</asp:Content>
<asp:Content ID="PageTitleInTitleArea" ContentPlaceHolderID="PlaceHolderPageTitleInTitleArea"
    runat="server">
    Gesti&oacute;n de perfiles
</asp:Content>
